#ifndef REPOSITORIESLISTWIDGET_H_
#define REPOSITORIESLISTWIDGET_H_

#include <QWidget>
#include "views/IRepositoriesListView.h"

namespace Ui
{
	class RepositoriesListWidget;
}

class RepositoriesListPresenter;
class ServiceLocator;

class RepositoriesListWidget : public QWidget, public IRepositoriesListView
{
	Q_OBJECT
public:
	RepositoriesListWidget(QWidget *parent = 0, Qt::WindowFlags flags = 0);
	virtual ~RepositoriesListWidget();
	void setServiceLocator(ServiceLocator *servicesFactory);
	void loadRepositoriesList();

private:
	Ui::RepositoriesListWidget *ui;
	RepositoriesListPresenter *presenter;
	void createUi();
};

#endif /* REPOSITORIESLISTWIDGET_H_ */
